package com.cat.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication//定义启动类
@ComponentScan("com.cat.yygh")//当前模块所依赖的包也扫描进
@MapperScan("com.cat.yygh.hosp.mapper")//指定扫描mapper
@EnableDiscoveryClient/*开启服务注册*/
@EnableFeignClients(basePackages = "com.cat.yygh")//扫描cmn服务
public class ServiceHospMainStarter {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospMainStarter.class,args);
    }
}
